﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GiaoDien_NVVPD.Master" AutoEventWireup="true" CodeBehind="QL_ChiDoan.aspx.cs" Inherits="BT_web__nhom06.QL_ChiDoan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title" style="text-align: center">
        Danh sách các Chi Đoàn       
    </div>
    <div style="margin-left: 450px"><a href="Them_CD.aspx">THÊM</a></div>

    <div class="section_box" align="center">

        <asp:GridView ID="gvDSChiDoan" runat="server" AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None" Width="478px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
             <asp:TemplateField HeaderText="Mã chi đoàn">
                 <ItemTemplate>
                     <a href='Thongtin_CD.aspx?id=<%#Eval("MaChiDoan") %>'>  <%#Eval("MaChiDoan") %></a>
                 </ItemTemplate>
             </asp:TemplateField>

            <asp:BoundField DataField="tenchidoan" HeaderText="Tên chi đoàn" />
            <asp:BoundField DataField="masvbithuchidoan" HeaderText="MaSV_BT" />
            <asp:BoundField DataField="masvphobithuchidoan" HeaderText="MaSV_PBT" />
                 <asp:TemplateField HeaderText="Chức năng">
                 <ItemTemplate>
                     <a href='Sua_CD.aspx?id=<%#Eval("MaChiDoan") %>'> Sửa</a> | 
                     <a href='Xoa_CD.aspx?id=<%#Eval("MaChiDoan") %>'> Xóa</a>
                 </ItemTemplate>
             </asp:TemplateField>
           </Columns>
                     <EditRowStyle BackColor="#2461BF" />
         <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
         <RowStyle BackColor="#EFF3FB" />
         <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
    </p>
         </div>
</asp:Content>
